package frobagroup.filter.JwtException;

/**
 * Created by Tinsley on 2016/11/22.
 */
public abstract class AuthenticationException extends Exception {
    private String exceptionMessage;
    private int errorCode;

    public AuthenticationException(String exceptionMessage, int errorCode) {
        super(exceptionMessage);
        this.exceptionMessage = exceptionMessage;
        this.errorCode = errorCode;
    }
    public AuthenticationException(String exceptionMessage) {
        super(exceptionMessage);
    }

    public AuthenticationException(String exceptionMessage, Throwable t) {
        super(exceptionMessage, t);
    }

    public int getErrorCode(){return errorCode;}
}
